#!/bin/sh
echo '***********************************************************'
echo '  Command line messaging test client'
echo '***********************************************************'
echo 'Parameter 1: Path to XML file describing all the parameters'
echo '***********************************************************'

CLASSPATH_JMS=.
CLASSPATH_JMS=$CLASSPATH_JMS:ant.jar
CLASSPATH_JMS=$CLASSPATH_JMS:ant-launcher.jar
CLASSPATH_JMS=$CLASSPATH_JMS:commons-logging.jar
CLASSPATH_JMS=$CLASSPATH_JMS:concurrent.jar
CLASSPATH_JMS=$CLASSPATH_JMS:ehcache-core.jar
CLASSPATH_JMS=$CLASSPATH_JMS:geronimo-jms_1.1_spec.jar
CLASSPATH_JMS=$CLASSPATH_JMS:javassist.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jbossall-client.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-aop.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-common-core.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-logging-log4j.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-logging-spi.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-mdr.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-messaging-client.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-reflect.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jboss-remoting.jar
CLASSPATH_JMS=$CLASSPATH_JMS:jnp-client.jar
CLASSPATH_JMS=$CLASSPATH_JMS:log4j.jar
CLASSPATH_JMS=$CLASSPATH_JMS:qdox.jar
CLASSPATH_JMS=$CLASSPATH_JMS:slf4j-api.jar
CLASSPATH_JMS=$CLASSPATH_JMS:slf4j-log4j12.jar
CLASSPATH_JMS=$CLASSPATH_JMS:trove.jar
CLASSPATH_JMS=$CLASSPATH_JMS:xml-apis.jar
CLASSPATH_JMS=$CLASSPATH_JMS:xpp3_min.jar
CLASSPATH_JMS=$CLASSPATH_JMS:xstream.jar
CLASSPATH_JMS=$CLASSPATH_JMS:messaging_service.jar
CLASSPATH_JMS=$CLASSPATH_JMS:messaging_test_cli.jar
CLASSPATH_JMS=$CLASSPATH_JMS:util.jar

java -cp "$CLASSPATH_JMS" org.infodavid.common.messaging.test.MessagingTestClient $1
